#!/usr/bin/env python
# -*-coding:utf-8-*-
# creat by har2py
# Date {{ creatime.strftime("%Y-%m-%d %H:%M:%S") }}

import requests
requests.packages.urllib3.disable_warnings()

sess = requests.session()
headers = {{headers}}
url = "{{url}}"

sess.headers = headers

params = {{params | default(None)}}
jsondata = {{jsondata | default(None)}}
{% if istextbody %}
postdata = '''{{postdata}}'''
{% else %}
postdata = {{postdata | default(None)}}
{% endif %}


resp = sess.{{method | lower}}(url, verify=False, json=jsondata, data=postdata, params=params)
print(resp.text)
